package pwd.allen.spring.consumer;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.concurrent.TimeUnit;

/**
 * @author 门那粒沙
 * @create 2020-04-06 9:29
 **/
public class Main {

    public static void main(String[] args) throws InterruptedException {
        AbstractApplicationContext ctx = new ClassPathXmlApplicationContext(
                "classpath:spring/consumer-context.xml");

        System.out.println("监听中。。。");
        while (true) {
            TimeUnit.SECONDS.sleep(1);
        }
    }
}
